<?echo $system_message;?>
<!--
<div class="alert-box secondary">
	<div class="row collapse">
		<div class="large-3 small-3 columns">
			<span class="prefix"><strong>Search Student:</strong></span>
		</div>
		<form action="" method="POST">
		<div class="large-6 small-6 columns">
			<input id="student_enrollment_id" class="searchInput" required autocomplete="off" placeholder="To Search student, Enter Student Name OR ID Number" url="<?=site_url('output/finance_search_student');?>" type="text" name="student_search_data" autofocus>
			<input type="hidden" name="current_student" value="<?=$enrollment_id;?>">
		</div>
		<div class="large-3 small-3 columns">
			<input type="submit" name="go_to_student_profile" class="button postfix" value="View Student Profile">
		</div>
		</form>
	</div>
</div>
-->
<?if($student_found):?>
<?$fullname = $student->firstname.' '.$student->middlename.' '.$student->lastname;?>
<div class="large-12 columns panel">
		<!--
		<?if($registrar == TRUE):?>
			<div class="btn-group">
			  <button class="btn"><i class="icon-print"></i>&nbsp;Print</button>
			  <button class="btn dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			  </button>
			  <ul class="dropdown-menu">
			   <li><a href="<?=site_url('pdf/registration/'.$student->enrollment_id.'/'.$authlink);?>" target="_blank"><i class="icon-g-file"></i>&nbsp;Registration Form</a></li>
				<li><a href="<?=site_url('pdf/print_insert/'.$eid_for_url);?>" target="_blank"><i class="icon-g-file"></i>&nbsp;Insert Form</a></li>
				<li><a href="<?=site_url('pdf/homeschoolagreement/'.$eid_for_url);?>" target="_blank"><i class="icon-g-file"></i>&nbsp;Home-School Agreement</a></li>
			  </ul>
			</div>
			
			<div class="btn-group">
			  <button class="btn btn-inverse"><i class="icon-wrench icon-white"></i>&nbsp;Others</button>
			  <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			  </button>
			  <ul class="dropdown-menu">
			  		<li><a href="<?=site_url('registrar/regenerate_student_password/'.$eid_for_url);?>" class="confirm" title="Regenerate Student Password?"><i class="icon-user"></i>&nbsp;Regenerate Password</a></li>
			  	<?if(@$student->can_login == 0):?>
			  		<li><a href="<?=site_url('user/login/'.$eid_for_url.'/enable');?>" id="<?=$eid_for_url;?>" class="confirm" title="Are you sure you want to Enable editing of profile for this student?"><i class="icon-user"></i>&nbsp;Enable Student Login&nbsp;<span class="label">Disabled</span></a></li>
			  	<?elseif($student->can_login == 1):?>
			  		<li><a href="<?=site_url('user/login/'.$eid_for_url.'/disable');?>" id="<?=$eid_for_url;?>" class="confirm"  title="Are you sure you want to Disable editing of profile for this student?"><i class="icon-user"></i>&nbsp;Disable Student Login&nbsp;<span class="label label-success">Enabled</span></a></li>
			  	<?endif;?>
			  	<li><a href="<?=site_url('search/del/'.$eid_for_url);?>" id="<?=$eid_for_url;?>" data-student-name="<?=ucwords(strtolower($student->fullname));?>" class="delete-student"><i class="icon-trash"></i>&nbsp;Move to Recycle Bin.</a></li>
			  	<?if(@$student->edit_profile == 0):?>
			  		<li><a href="<?=site_url('user/enableedit/'.$eid_for_url.'/enable');?>" id="<?=$eid_for_url;?>" class="confirm" title="Are you sure you want to Enable editing of profile for this student?"><i class="icon-pencil"></i>&nbsp;Enable Parents to Edit&nbsp;<span class="label">Disabled</span></a></li>
			  	<?elseif($student->edit_profile == 1):?>
			  		<li><a href="<?=site_url('user/enableedit/'.$eid_for_url.'/disable');?>" id="<?=$eid_for_url;?>" class="confirm"  title="Are you sure you want to Disable editing of profile for this student?"><i class="icon-pencil"></i>&nbsp;Disable Parents to Edit&nbsp;<span class="label label-success">Enabled</span></a></li>
			  	<?endif;?>
			  </ul>
			</div>
		<?endif?>
		<?if(in_array($this->session_user,array('finance','cashier'))):?>
			<a href="<?=site_url('fees/view_fees/'.$student->enrollment_id);?>" class="btn btn-primary">Go to student Financial Records</a>
		<?endif;?>
		<div class="btn-group">
			<a href="<?=site_url('profile/student_schedule/'.$student->enrollment_id);?>" class="btn btn-mini"><i class="icon-g-calendar"></i>&nbsp;Schedule</a>
			<a href="<?=site_url('profile/student_grade/'.$student->enrollment_id);?>" class="btn btn-mini"><i class="icon-g-table"></i>&nbsp;Grades</a>
			<a href="<?=site_url('profile/student_attendance/'.$student->enrollment_id);?>" class="btn btn-mini"><i class="icon-g-notes"></i>&nbsp;Attendance</a>
		</div>
		-->
		<div>
			<p><b>Reason:</b></p>
			<p><?php echo $student->reason; ?></p>
		</div>
		<hr class="clearfix">
	<div class="row">
		<div class="large-2 columns">
			<ul class="clearing-thumbs" data-clearing>
				<li><a href="<?=student_photo($student->idno,$student->gender);?>"><img data-caption="<?=$fullname;?>" class="img-rounded" style="border:2px solid #000;width:140px;" src="<?=student_photo($student->idno,$student->gender);?>" ></a></li>
			</ul>
		</div>
		<div>
			<!--
			<?if(!@$enroll):?>
				<?if($registrar):?>
					<?if(@$force_confirm):?>
						<div>
							<a href="<?=site_url('registrar/force_confirm_student/'.__link(intval($student->enrollment_id)));?>"  class="confirm btn btn-success" title="System has detected that student &quot;<?=$fullname;?>&quot; did not confirm his/her email address?, do you want to force confirm the email address? Before confirming the email address please be sure that it is the right email.">Confirm Online Enrollment of (<?=$fullname;?>)</a>
						</div>
					<?else:?>
			-->
			<!--
						<div>
							<a href="<?=site_url('registrar/retrieve_student/'.$authlink.'/'.$student->enrollment_id);?>" class="confirm" title="Are you sure you want to retrieve &quot;<?=$fullname;;?>&#39;s &quot; enrollment?">
							<button class="btn btn-success">Retrieve Enrollee (<?=$fullname;?>)</button>
							</a>
						</div>
			-->
			<!--
					<?endif;?>
				<?else:?>
					<div>
						<a href="#" class="btn btn-danger btn-block  disabled">Student is currenlty awaitng verification by the registrar.</a>
					</div>		
				<?endif;?>
			<?endif;?>
			-->
			<div class="row">
				<div class="large-6 columns">
					<ul style="list-style-type:none;">
						<li><?=ucwords($fullname);?></li>
						<li><strong><?=ucwords(@$student->level_desc);?></strong></li>
						<li><?=$student->idno;?></li>
					</ul>
				</div>
				<div class="large-6 columns">
				</div>
			</div>
		</div>
	</div>
</div>

<div class="clearfix"></div>
<div class="section-container auto" data-section>
 <!-- For Westfields -->
  <section>
    <p class="title" data-section-title><a href="#panel1">Personal Information</a></p>
    <div class="content" data-section-content>
      <?$this->load->view('profile/_personal_information_deleted');?>
    </div>
  </section>
   <section>
    <p class="title" data-section-title><a href="#panel2">Parent Legal Information</a></p>
    <div class="content" data-section-content>
      <?$this->load->view('profile/_parent_legal_information_deleted');?>
    </div>
  </section>
   <section>
    <p class="title" data-section-title><a href="#panel3">Health History</a></p>
    <div class="content" data-section-content>
      <?$this->load->view('profile/_health_history_deleted');?>
    </div>
  </section>
  <section>
    <p class="title" data-section-title><a href="#panel4">Authorization</a></p>
    <div class="content" data-section-content>
      <?$this->load->view('profile/_authorization_deleted')?>
    </div>
  </section>
  <?php if($user_type == 'guidance' && $student->student_type == 'new'): ?>
  <section>
    <p class="title" data-section-title><a href="#panel5">Test Result</a></p>
    <div class="content" data-section-content>
      <?$this->load->view('profile/_entrance_test_result_deleted');?>
    </div>
  </section>
  <?php endif; ?>
  <?php if($user_type == 'registrar'): ?>
  <section>
    <p class="title" data-section-title><a href="#panel6"><i class="icon-file"></i></a></p>
    <div class="content" data-section-content>
      <?$this->load->view('profile/_form_checklist_deleted');?>
    </div>
  </section>
   <?php endif; ?>
 <!-- End For Westfields -->
</div>
<script src="<?=script_url('custom/student');?>"></script>
<?else:?>
	<div class="alert-box secondary">
		Use the search box on top to search for student.
	</div>
<?endif;?>
<script type="text/javascript" src="<?=script_url('custom/fsearch_2');?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/deletestudent');?>"></script>